package com.ssyu.examination.questionbank.entity;

import java.util.Date;
import java.util.List;

public class QesExamPaperEntity {
	private int id;
	private String name;
	private String paperUrl;
	private int paperType;
	private int courseId;
	private int totalPoint;
	private int passPoint;
	private int totalMinutes;
	private int singleOptionNumber;
	private int singleOptionEachPoint;
	private int singleOptionDifficulty;
	private int multiOptionNumber;
	private int multiOptionEachPoint;
	private int multiOptionDifficulty;
	private int judgeNumber;
	private int judgeEachPoint;
	private int judgeDifficulty;
	private int opreateUserId;
	private Date opreateTime;
	private int state;
	private String memo;

	private String course__text;
	private String user__name;

	private List<QuestionQesEntity> singleList;
	private List<QuestionQesEntity> multipleList;
	private List<QuestionQesEntity> judgeList;

	public QesExamPaperEntity() {
		super();
	}

	public QesExamPaperEntity(int id, String name, String paperUrl,
			int paperType, int courseId, int totalPoint, int passPoint,
			int totalMinutes, int singleOptionNumber,
			int singleOptionEachPoint, int singleOptionDifficulty,
			int multiOptionNumber, int multiOptionEachPoint,
			int multiOptionDifficulty, int judgeNumber, int judgeEachPoint,
			int judgeDifficulty, int opreateUserId, Date opreateTime,
			int state, String memo, String course__text, String user__name,
			List<QuestionQesEntity> singleList,
			List<QuestionQesEntity> multipleList,
			List<QuestionQesEntity> judgeList) {
		super();
		this.id = id;
		this.name = name;
		this.paperUrl = paperUrl;
		this.paperType = paperType;
		this.courseId = courseId;
		this.totalPoint = totalPoint;
		this.passPoint = passPoint;
		this.totalMinutes = totalMinutes;
		this.singleOptionNumber = singleOptionNumber;
		this.singleOptionEachPoint = singleOptionEachPoint;
		this.singleOptionDifficulty = singleOptionDifficulty;
		this.multiOptionNumber = multiOptionNumber;
		this.multiOptionEachPoint = multiOptionEachPoint;
		this.multiOptionDifficulty = multiOptionDifficulty;
		this.judgeNumber = judgeNumber;
		this.judgeEachPoint = judgeEachPoint;
		this.judgeDifficulty = judgeDifficulty;
		this.opreateUserId = opreateUserId;
		this.opreateTime = opreateTime;
		this.state = state;
		this.memo = memo;
		this.course__text = course__text;
		this.user__name = user__name;
		this.singleList = singleList;
		this.multipleList = multipleList;
		this.judgeList = judgeList;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPaperUrl() {
		return paperUrl;
	}

	public void setPaperUrl(String paperUrl) {
		this.paperUrl = paperUrl;
	}

	public String getPaperTypeStr() {
		if (paperType == 1) {
			return "平常测试";
		} else if (paperType == 2) {
			return "结业考试";
		} else {
			return "什么都不是";
		}
	}

	public int getPaperType() {
		return paperType;
	}

	public void setPaperType(int paperType) {
		this.paperType = paperType;
	}

	public int getCourseId() {
		return courseId;
	}

	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}

	public int getTotalPoint() {
		return totalPoint;
	}

	public void setTotalPoint(int totalPoint) {
		this.totalPoint = totalPoint;
	}

	public int getPassPoint() {
		return passPoint;
	}

	public void setPassPoint(int passPoint) {
		this.passPoint = passPoint;
	}

	public int getTotalMinutes() {
		return totalMinutes;
	}

	public void setTotalMinutes(int totalMinutes) {
		this.totalMinutes = totalMinutes;
	}

	public int getSingleOptionNumber() {
		return singleOptionNumber;
	}

	public void setSingleOptionNumber(int singleOptionNumber) {
		this.singleOptionNumber = singleOptionNumber;
	}

	public int getSingleOptionEachPoint() {
		return singleOptionEachPoint;
	}

	public void setSingleOptionEachPoint(int singleOptionEachPoint) {
		this.singleOptionEachPoint = singleOptionEachPoint;
	}

	public String getSingleOptionDifficultyStr() {
		if (singleOptionDifficulty == 1) {
			return "低";
		} else if (singleOptionDifficulty == 2) {
			return "中";
		} else if (singleOptionDifficulty == 3) {
			return "较高";
		} else if (singleOptionDifficulty == 4) {
			return "高";
		} else {
			return "无此难度";
		}
	}

	public int getSingleOptionDifficulty() {
		return singleOptionDifficulty;
	}

	public void setSingleOptionDifficulty(int singleOptionDifficulty) {
		this.singleOptionDifficulty = singleOptionDifficulty;
	}

	public int getMultiOptionNumber() {
		return multiOptionNumber;
	}

	public void setMultiOptionNumber(int multiOptionNumber) {
		this.multiOptionNumber = multiOptionNumber;
	}

	public int getMultiOptionEachPoint() {
		return multiOptionEachPoint;
	}

	public void setMultiOptionEachPoint(int multiOptionEachPoint) {
		this.multiOptionEachPoint = multiOptionEachPoint;
	}

	public String getMultiOptionDifficultyStr() {
		if (multiOptionDifficulty == 1) {
			return "低";
		} else if (multiOptionDifficulty == 2) {
			return "中";
		} else if (multiOptionDifficulty == 3) {
			return "较高";
		} else if (multiOptionDifficulty == 4) {
			return "高";
		} else {
			return "无此难度";
		}
	}

	public int getMultiOptionDifficulty() {
		return multiOptionDifficulty;
	}

	public void setMultiOptionDifficulty(int multiOptionDifficulty) {
		this.multiOptionDifficulty = multiOptionDifficulty;
	}

	public int getJudgeNumber() {
		return judgeNumber;
	}

	public void setJudgeNumber(int judgeNumber) {
		this.judgeNumber = judgeNumber;
	}

	public int getJudgeEachPoint() {
		return judgeEachPoint;
	}

	public void setJudgeEachPoint(int judgeEachPoint) {
		this.judgeEachPoint = judgeEachPoint;
	}

	public String getJudgeDifficultyStr() {
		if (judgeDifficulty == 1) {
			return "低";
		} else if (judgeDifficulty == 2) {
			return "中";
		} else if (judgeDifficulty == 3) {
			return "较高";
		} else if (judgeDifficulty == 4) {
			return "高";
		} else {
			return "无此难度";
		}
	}

	public int getJudgeDifficulty() {
		return judgeDifficulty;
	}

	public void setJudgeDifficulty(int judgeDifficulty) {
		this.judgeDifficulty = judgeDifficulty;
	}

	public int getOpreateUserId() {
		return opreateUserId;
	}

	public void setOpreateUserId(int opreateUserId) {
		this.opreateUserId = opreateUserId;
	}

	public Date getOpreateTime() {
		return opreateTime;
	}

	public void setOpreateTime(Date opreateTime) {
		this.opreateTime = opreateTime;
	}

	public int getState() {
		return state;
	}

	public String getStateStr() {
		if (state == 1) {
			return "有效";
		} else if (state == 2) {
			return "无效";
		} else {
			return "Undefined";
		}
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getCourse__text() {
		return course__text;
	}

	public void setCourse__text(String course__text) {
		this.course__text = course__text;
	}

	public String getUser__name() {
		return user__name;
	}

	public void setUser__name(String user__name) {
		this.user__name = user__name;
	}

	public List<QuestionQesEntity> getSingleList() {
		return singleList;
	}

	public void setSingleList(List<QuestionQesEntity> singleList) {
		this.singleList = singleList;
	}

	public List<QuestionQesEntity> getMultipleList() {
		return multipleList;
	}

	public void setMultipleList(List<QuestionQesEntity> multipleList) {
		this.multipleList = multipleList;
	}

	public List<QuestionQesEntity> getJudgeList() {
		return judgeList;
	}

	public void setJudgeList(List<QuestionQesEntity> judgeList) {
		this.judgeList = judgeList;
	}

}
